/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_caja_billeteCriteria extends AbstractORMCriteria {
	public final IntegerExpression cb_id_caja_billetes;
	
	public Tbv_caja_billeteCriteria(Criteria criteria) {
		super(criteria);
		cb_id_caja_billetes = new IntegerExpression("cb_id_caja_billetes", this);
	}
	
	public Tbv_caja_billeteCriteria(PersistentSession session) {
		this(session.createCriteria(Tbv_caja_billete.class));
	}
	
	public Tbv_caja_billeteCriteria() throws PersistentException {
		this(orm.Bdvendomaticav04PersistentManager.instance().getSession());
	}
	
	public Tbv_tipo_caja_billeteCriteria createTbv_tipo_caja_billetetc_id_tipo_caja_billeteCriteria() {
		return new Tbv_tipo_caja_billeteCriteria(createCriteria("tbv_tipo_caja_billetetc_id_tipo_caja_billete"));
	}
	
	public Tbv_maquinaCriteria createTbv_maquinaCriteria() {
		return new Tbv_maquinaCriteria(createCriteria("ORM_Tbv_maquina"));
	}
	
	public Tbv_caja_billete uniqueTbv_caja_billete() {
		return (Tbv_caja_billete) super.uniqueResult();
	}
	
	public Tbv_caja_billete[] listTbv_caja_billete() {
		java.util.List list = super.list();
		return (Tbv_caja_billete[]) list.toArray(new Tbv_caja_billete[list.size()]);
	}
}

